﻿@namespace MudBlazor
@inherits MudComponentBase

<span @attributes="UserAttributes" class="@Classname" style="@Style">
    @ChildContent
    @if (Visible)
    {
        <span class="@WrapperClass">
            <span role="status" aria-live="polite" aria-label="@BadgeAriaLabel" class="@BadgeClassname" @onclick="this.AsNonRenderingEventHandler<MouseEventArgs>(HandleBadgeClick)">
                @if (!Dot)
                {
                    @if (!string.IsNullOrEmpty(Icon))
                    {
                        <MudIcon Icon="@Icon" Class="mud-icon-badge" />
                    }
                    else
                    {
                        @_content
                    }
                }
            </span>
        </span>
    }
</span>
